<template>
  <main class="main-content">
    <div class="page-header">
      <div class="container">
        <h1 class="page-title">更多服务</h1>
      </div>
    </div>
    
    <div class="container">
      <div class="more-layout">
        <aside class="sidebar">
          <nav class="sidebar-nav">
            <router-link to="/more/community" class="sidebar-link">社区</router-link>
            <router-link to="/more/flower-care" class="sidebar-link">鲜花养护</router-link>
            <router-link to="/more/special-service" class="sidebar-link">特色送花服务</router-link>
            <router-link to="/more/monthly-flower" class="sidebar-link">每月花期</router-link>
            <router-link to="/more/feedback" class="sidebar-link">反馈与建议</router-link>
          </nav>
        </aside>
        
        <div class="content-area">
          <router-view />
        </div>
      </div>
    </div>
  </main>
</template>

<script>
export default {
  name: 'MoreServiceLayout'
};
</script>

<style scoped>
.main-content {
  flex: 1;
  background: linear-gradient(135deg, #D693A1, #E2F5FF);
}

.page-header {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-title {
  color: #e75480;
  font-size: 2rem;
}

.more-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  min-height: 500px;
  margin-bottom: 3rem;
}

.sidebar {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: block;
  padding: 0.8rem 1rem;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.sidebar-link:hover, .sidebar-link.router-link-active {
  background-color: #f8e1e7;
  color: #e75480;
}

.content-area {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

@media (max-width: 768px) {
  .more-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    margin-bottom: 1rem;
  }
  
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .sidebar-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
}
</style>